package com.ksyun.cloudhostalarmprocessing.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Metrics对象", description = "")
public class MetricsVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("指标id")
    private Long metricId;

    @ApiModelProperty("指标名称")
    private String metricName;

    @ApiModelProperty("主机id")
    private String instanceId;

    @ApiModelProperty("时间")
    private LocalDateTime timestamp;

    @ApiModelProperty("指标值")
    private Float value;

    @ApiModelProperty("主机名称")
    private String hostname;

    public MetricsVO(String metricName, String instanceId, LocalDateTime timestamp, Float value, String hostname) {
        this.metricName = metricName;
        this.instanceId = instanceId;
        this.timestamp = timestamp;
        this.value = value;
        this.hostname = hostname;
    }
}
